package pth.authentication.service;

import vin.pth.base.exception.authentication.AuthenticationException;
import vin.pth.base.pojo.UserDetails;

/**
 * 认证用户service.
 *
 * @author cocoon
 */
public interface AuthenticationUserService {

  /**
   * 通过Token获取用户信息.
   *
   * @param token 令牌
   * @return 用户信息
   * @throws AuthenticationException 鉴权异常
   */
  UserDetails getByToken(String token) throws AuthenticationException;


}
